<template>
  <div class="home">
    <my-input v-model="msg"></my-input>
    <!-- <my-input :value="msg" @input="msg = $event"></my-input> -->
    <p>内容是：{{msg}}</p>
  </div>
</template>

<script>
import myInput from '../components/myInput.vue'
// @ is an alias to /src

export default {
  name: 'Home',
  components: {
    myInput
  },
  data(){
    return {
      msg: '李四'
    }
  },
  methods: {
    inputpar(val){
      // console.log(val);\
      this.msg = val;
    }
  },
}
</script>
